import 'package:flutter/widgets.dart';
import 'package:flutter_example/app/modules/home/views/home_view.dart';
import 'package:get/get.dart';

class TabsController extends GetxController {
  final List<Widget> pages = [
    const HomeView(),
  ];

  final currentIndex = 0.obs;

  PageController pageController =
      Get.arguments != null
          ? PageController(initialPage: Get.arguments["initialPage"])
          : PageController(initialPage: 0);

  setCurrentIndex(index) {
    currentIndex.value = index;
  }
}
